package com.guanglan.mapper;

import com.guanglan.entity.SysRole;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

@MapperScan
public interface SysRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysRole sysRole);

    int insertSelective(SysRole sysRole);

    SysRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRole sysRole);

    int updateByPrimaryKey(SysRole sysRole);

    List<SysRole> selectSysRolesByUserName(@Param("userName") String userName);

    List<SysRole> selectRoles();

    List<SysRole> selectSysRolesByRoleName(@Param("roleName") String roleName);
}